<template>
  <div class="common-layout">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">Aside</el-aside>
        <el-main>
          <el-carousel>
            <el-carousel-item v-for="item in arr">
              <img :src="item" style="width: 100%;height: 100%">
            </el-carousel-item>
          </el-carousel>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script setup>
import {ref} from "vue";
const arr = ref(["/imgs/banner1.jpg","/imgs/banner2.jpg","/imgs/banner3.jpg",])
</script>
<style scoped>
.el-header{background-color: red}
.el-aside{background-color: green;height: 500px}
.el-main{background-color: blue;height: 500px}
</style>